﻿@model MVCSampleApp.Models.Menu
@{
  ViewBag.Title = "StronglyTypedMenu";
}
@helper DisplayDay(DateTime day)
{
  if (day < DateTime.Today)
  {
  <span>History day</span>
  }
  @String.Format("{0:d}", day);                              
}
<h2>StronglyTypedMenu</h2>
@Html.DisplayNameFor(m => m.Text)
<br />
@Html.DisplayFor(m => m.Text)
@Html.DisplayTextFor(m => m.Price)
@Html.TextBoxFor(m => m.Text)

@DisplayDay(Model.Date)

